<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\admin\controller;

use cmf\controller\AdminBaseController;
use app\common\logic\admin\Lesson;

class LessonController extends AdminBaseController
{
	public function index(Lesson $Lesson)
	{
		$param = $this->request->param();
		$param['1'] = 1;
		$data = $Lesson->index($param);
		$this->assign('data',$data);
		$this->assign('page',$data->render());
		return $this->fetch('lesson/index');
	}

	public function school(Lesson $Lesson){
		$param = $this->request->param();
		$param['1'] = 1;
		$data = $Lesson->getList($param);
		$this->assign('data',$data);
		$this->assign('page',$data->render());
		return $this->fetch('lesson/school');
	}
}